package com.znufe.exam.viewmodel.student.autopage;

import com.znufe.exam.domain.AutoPageSpan;
import com.znufe.exam.viewmodel.BaseVM;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class AutoPageResponseVm extends BaseVM {

    private Integer id;

    private Integer classId;

    private Integer courseId;

    private Integer examPaperId;

    private Integer choiceInterval;

    private Integer judgeInterval;

    @ApiModelProperty(value = "0-不保存；1-保存",name = "isSaved",example = "1")
    private Integer isSaved;

    public static AutoPageResponseVm from(AutoPageSpan autoPageSpan){
        AutoPageResponseVm vm = modelMapper.map(autoPageSpan,AutoPageResponseVm.class);
        return vm;
    }
}
